﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/BookClub.Master" AutoEventWireup="true" CodeBehind="editbookclub.aspx.cs" Inherits="BookClubIt.editbookclub" %>
<%@ Register TagPrefix="uc" TagName="clubnav" Src="~/UserControls/clubmenu.ascx" %>
<%@ Register TagPrefix="uc" TagName="joinbox" Src="~/UserControls/joinbox.ascx"  %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<div class="row">
<div class="left-nav">
<uc:clubnav id="clubnav"  runat="server" />
</div>

<div class="content">
<h1><small>Edit <asp:Label ID="lblClubName" runat="server" /></small></h1>


<div class="form-horizontal">
<asp:HiddenField ID="hdnCreatedDate" runat="server" />

<div class="control-group">
<label class="control-label" for="input01"><b style="color:#ff0000">*</b> Book club name:</label>
<div class="controls">
<asp:TextBox ID="txtClubName" runat="server" CssClass="" Width="300px" />
</div>
</div>

<div class="control-group">
<label class="control-label" for="input01">Genre:</label>
<div class="controls">
<asp:DropDownList ID="ddlGenres" runat="server">
</asp:DropDownList>
</div>
</div>

<div class="control-group">
<label class="control-label" for="input01"><b style="color:#ff0000">*</b> Description:</label>
<div class="controls">
<textarea  ID="txtDescription" cols="45" rows="6" runat="server"/>
</div>
</div>


<div class="control-group">
<label class="control-label" for="input01">Rules:</label>
<div class="controls">
<textarea ID="txtRules"  runat="server" cols="45" rows="6"/>
</div>
</div>


<div class="control-group">
<label class="control-label" for="input01">Website:</label>
<div class="controls">
<asp:textbox ID="txtWebsite"  runat="server" Width="200px"/>
</div>
</div>


<div class="control-group">
<label class="control-label" for="input01">Avatar:</label>
<div class="controls">
<asp:Image ID="imgClubAvatar" runat="server" Height="40px" Width="40px" />
<asp:FileUpload ID="UploadImage" runat="server" />
<asp:Button ID="btnUpload" runat="server" CssClass="btn btn-small btn-primary" Text="Upload" onclick="btnUpload_Click" />
</div>
</div>



<div class="control-group">
<label class="control-label" for="input01"><b style="color:#ff0000">*</b> Club type:</label>
<div class="controls">
<asp:RadioButtonList ID="rblClubType" runat="server" CssClass="club-type-list">
<asp:ListItem Text="<label style='color:#009245'>Public</label> <p>Anyone can join this group. Anyone can view group discussions and information.</p>" Value="1"/>
<asp:ListItem Text="<label style='color:#ff6600'>Private</label> <p>New members must be approved by moderators. Anyone can see book club information discussions, meetings, polls, and events but cannot participate unless a member of the book club.</p>" Value="2"/>
<asp:ListItem Text="<label style='color:#ff0000'>Secret</label> <p>New members must be approved by moderators. This book club will not appear in search results or in user profiles. Only moderators can invite new members.</p>" Value="3"/>
</asp:RadioButtonList>
</div>
</div>

<div class="control-group">
<div class="controls">
<label class="checkbox"><input type="checkbox" id="chk18andOver" runat="server" class="checkbox" />This group is for adults only (18+)</label>
</div>
</div>

<div class="control-group">
<div class="controls">
<label class="checkbox"><input type="checkbox" id="chkNonModAddEvents" runat="server" class="checkbox"/><span>Non-leaders can add events</span></label>
</div>
</div>

<div class="control-group">
<div class="controls">
<label class="checkbox"><input type="checkbox" id="chkNonModAddPolls" runat="server" class="checkbox"  /><span>Non-leaders can create polls</span></label>
</div>
</div>
<div class="control-group">
<div class="controls">
<label class="checkbox"><input type="checkbox" id="chkNonModAddTopics" runat="server" class="checkbox"/><span>Non-leaders can create discussion topics</span></label>
</div>
</div>
<div class="control-group">
<div class="controls">
<label class="checkbox"><input type="checkbox" runat="server" id="chkRealMeet" class="checkbox" /><span>This group meets in real life</span></label>
</div>
</div>

<div class="form-actions">
<asp:button runat="server" OnClick="btnEditClub_Click" text="Save Book Club" ID="btnCreateClub" CssClass="btn btn-large btn-primary" />
</div>  
</div>


</div>
<div class="right-sidebar">
<uc:joinbox id="joinbox"  runat="server" />
</div>

</div>
</asp:Content>
